@extends('admin.common.layout')
@section('admin')
<table id="appStaffPostTable"></table>
<div id="appStaffPostToolBar" style="padding:10px">
<form id="fm-app-staff-post" action="###" method="get">

  <label class="l-btn-disabled">&nbsp;&nbsp;名&nbsp;&nbsp;称：</label><input  class="textbox" type="text" name="name" placeholder="请输入..." style="width:150px;padding:5px;"/>
  <label class="l-btn-disabled">&nbsp;&nbsp;状&nbsp;&nbsp;态：</label>
  <select class="easyui-combobox" name="status" style="width:150px;height:28px;">
    <option value="0">请选择</option>
    <option value="1">正常</option>
    <option value="2">禁用</option>
  </select>
  <input  class="textbox" type="hidden" name="type" value="ajax" />
  <button  type="button" class="easyui-linkbutton" iconCls="icon-search" onClick='appStaffPostObj.search();'>查询</button>
  <button  type="button" class="easyui-linkbutton" iconCls="icon-reload" onClick='appStaffPostObj.reset();'>重置</button>
  <a class="easyui-linkbutton" iconCls="icon-20130406015709810_easyicon_net_16" onClick='commonObj.reload();'>重载</a>
  <a class="easyui-linkbutton" iconCls="icon-user_add" plain="false" onClick='appStaffPostObj.add(this);'>新增职称</a>

</form>
</div>
<div id="dlg-app-staff-post-add" class="easyui-dialog" style="width:400px" closed="true" buttons="#dlg-app-staff-post-add-buttons">
	<form id="fm-app-staff-post-add" method="get">
	<div style="margin:0;padding:20px 25px">

    <div style="margin-bottom:10px">
	<input  name="name" class="easyui-textbox"  required="true" label="职称名称:" style="width:90%">
	</div>
	<div style="margin-bottom:10px">
	<input  name="code" class="easyui-textbox"  required="true" label="职称编码:" style="width:90%">
	</div>
	<div style="margin-bottom:10px">
	<input  name="desc" class="easyui-textbox"  required="true" label="职称描述:" style="width:90%;height:50px;">
	</div>
	
	</div>
	</form>
</div>
<div id="dlg-app-staff-post-add-buttons">
<a class="easyui-linkbutton" iconCls="icon-page_save" onclick="appStaffPostObj.save(this);">保存数据</a>
<a class="easyui-linkbutton" iconCls="icon-page_cancel" onclick="appStaffPostObj.cancel(this);">放弃操作</a>
</div>

<div id="dlg-app-staff-post-edit" class="easyui-dialog" style="width:400px" closed="true" buttons="#dlg-app-staff-post-edit-buttons">
  <form id="fm-app-staff-post-edit" method="get">
   <div style="margin:0;padding:20px 25px">

	<div style="margin-bottom:10px;display:none;">
	<input type="hidden" id="app-staff-post-edit-id" name="id" class="easyui-textbox" abel="职称ID:" style="width:90%">
	</div>
	<div style="margin-bottom:10px;display:none;">
	<input type="hidden" id="app-staff-post-edit-status" name="status" class="easyui-textbox" label="职称状态:" style="width:90%">
	</div>
	<div style="margin-bottom:10px">
	<input id="app-staff-post-edit-name" name="name" class="easyui-textbox"  required="true" label="职称名称:" style="width:90%">
	</div>
	<div style="margin-bottom:10px">
	<input id="app-staff-post-edit-code" name="code" class="easyui-textbox"  required="true" label="职称编码:" style="width:90%">
	</div>
	<div style="margin-bottom:10px">
	<input id="app-staff-post-edit-desc" name="desc" class="easyui-textbox"  required="true" label="职称描述:" style="width:90%;height: 50px;">
	</div>
    
   </div>
  </form>
</div>
<div id="dlg-app-staff-post-edit-buttons">
<a class="easyui-linkbutton" iconCls="icon-page_save" onclick="appStaffPostObj.modify(this);">保存数据</a>
<a class="easyui-linkbutton" iconCls="icon-page_cancel" onclick="appStaffPostObj.cancel(this);">放弃操作</a>
</div>
<script>
require(['pages/admin/app/staff','pages/common/common'],function(appStaff,common){
common.init({});
appStaff.appStaffPostInit({
	get_list_url:"{{ route('admin.app.staff.post')}}",
	get_add_url:"{{ route('admin.app.staff.post.add')}}",
	get_edit_url:"{{ route('admin.app.staff.post.edit')}}",
  });
});
</script>
@stop
